<?php
class AppController extends Controller {
	
	var $components = array('Auth' );
	var $helpers = array('Menu' ,'Html' ,'Javascript' ,'Pagination' ,'Form');
	var $uses = array('Category');
	function beforeFilter() {
		Configure::load('defaults');
		
		//语言
		if (!$this->Session->check('language')){
			$this->Session->write('language' ,'en');
		}
		Configure::write('language' ,$this->Session->read('language'));
		$this->set('categories' ,$this->Category->find('all'));
		$this->Auth->allow();
	}
	
	function checkGroupPermissions()
	{
		
	}
	
	function checkPersion()
	{
		
	}
}
?>